package model

type User struct {
	Id       int    `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
	Username string `json:"username" form:"username" gorm:"column:username;comment:用户名"`
	Sex      string `json:"sex" form:"sex" gorm:"column:sex;comment:性别"`
	Phone    string `json:"phone" form:"phone" gorm:"column:phone;comment:手机号"`
	Message  string `json:"message" form:"message" gorm:"column:message;comment:留言信息"`
	Status   int    `json:"status" form:"status" gorm:"column:status;comment:用户状态"`
	Time     int    `json:"time" form:"time" gorm:"column:time;comment:留言时间"`
}

func (User) TableName() string {
	return "user"
}
